package com.haier.dto;

import org.apache.commons.lang3.StringUtils;

import lombok.Data;

@Data
public class HpAreaGoTrackDto extends BaseDto {
	private static final long serialVersionUID = 1L;

	private String name;
	private String jobNumber;
	private Long gardenId;
	private String gardenName;
	private Long areaId;
	private String areaName;
	private String startTime;
	private String endTime;
	private Boolean isSuccess;

	private Long[] areaIds;
	@SuppressWarnings("unused")
	private String areaIdsStr;

	public String getAreaIdsStr() {
		if (areaIds == null) {
			return null;
		}
		return areaIdsStr = StringUtils.join(areaIds, ",");
//		StringBuffer str = new StringBuffer();
//		for (int i = 0; i < areaIds.length; i++) {
//			str.append(areaIds[i]);
//			if (i != areaIds.length - 1) {
//				str.append(",");
//			}
//		}
//		return areaIdsStr = str.toString();
	}
}
